home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
program
/
assembly
/
newstart.lha
/
Startup_Asm.readme
next >
Wrap
Text File
|
1995-09-05
|
4KB
|
103 lines
Short : Very powerful startup code for assembler.
Author : Kenneth C. Nilsen / Digital Surface (soon: djdoom@digsur.wws.no)
Uploader : Kenneth C. Nilsen / Digital Surface (soon: djdoom@digsur.wws.no)
Type : dev/asm
Requires kickstart 1.2+, any chip and configuration.
Startup.asm
===========
$VER: Startup_asm 3.4 (5.9.95)
Copyright © 1995, by Kenneth C. Nilsen.
All rights reserved.
The best startup code you find for assemblers.
This source is free.
Any kickstart (1.2+), any chip and configuration will do.
WHY USE THIS CODE?
==================
1) It makes your programs safe from crashing on system that has lower
processor configuration than you require. An error message is given
and the program will exit without executing any of your code.
2) It prevents your program to crash if you start from Workbench/icon.
3) Expands your assembler with 10 more commands!
4) Very easy to open libraries. One line opens a library. Even error
messages are given if any of the libraries can't be opened.
5) It enables easy argument parsing where one argument is given to you
one by one.
6) Very easy to implement in your sources, just one include (itself).
7) Supports the 68060 processor (tested).
8) Source is completly safe. Contributed to the public domain by 12 years
experience with programming.
9) You don't need any external includes to make this startup code work.
10) Learn how to deal with these situation by study the source.
11) Experiment with the source and make a startup code for your needs.
12) By using the internal NextArg macro you can have more UNIX like
option command lines for your programs. The ReadArgs() function is
limited in that manner.
13) Helps you setting the right return code at exit.
14) A demo program and source are following this archive.
NEW FEATURES
============
3.4:
- Added <Return> macro. Use it like "Return 0" and it puts the return
code in D0 and makes a RTS automatically. Added info to doc and
startup example. Optimized some code.
Added comments in the Startup.asm source! :)
Added *n (newline) feature in argument parsing. Use this like:
> Test "This is a test*nto see newline in *"qvotes*".". This will be:
> This is a test
> to see newline in "qvotes".
Included a sample header source.
3.3beta:
- Is now bug free! :) Only thing to change now is to read icon args/
tooltypes from Workbench due to a main release :)
3.2beta:
- Added 68040 FPU options. Use:
MathProc = 68881/68882 or 68040 to set FPU. 0=no FPU.
BUG FIXES
=========
3.3beta:
- an enforcer hit fixed (BYTE READ FROM 0). Occured when starting from
icon with no argument. Never was dangerous, but still nice to have
it all clean :)
3.2beta:
- there was a bug testing for 68060. If you had a 040 with 040FPU this
allowed you to run programs assembled for 060.
- a bug where reported about the Version and TaskName macros. These
work fine with AsmOne, but both DevPac and Barfly can not handle
spaces between words even if they are in qvotes. Sorry, can not do
something about this (I think) so write version strings manually and
use TaskName with underscores instead of spaces...
- an enforcer hit (BYTE READ FROM 0) where reported when started from
workbench. Working on the problem, but no danger... :)
3.1beta:
- Implemented an unfinished Startup.asm file in the 3.0 archive.
- Expanded the NextArg macro to solve *" situations in arguments.
- Added buffercount for output strings. This caused misunderstandings
and people reported bugs. Not a bug, but not a good presentation :)